import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
    {
    title: '物资类型',
    align:"center",
    dataIndex: 'type'
   },
   {
    title: '总数量',
    align:"center",
    dataIndex: 'sum'
   },
   {
    title: '已分配数量',
    align:"center",
    dataIndex: 'used'
   },
   {
    title: '消耗情况',
    align:"center",
    dataIndex: 'consume'
   },
   {
    title: '采购计划',
    align:"center",
    dataIndex: 'plan'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '物资类型',
    field: 'type',
    component: 'Input',
  },
  {
    label: '总数量',
    field: 'sum',
    component: 'InputNumber',
  },
  {
    label: '已分配数量',
    field: 'used',
    component: 'InputNumber',
  },
  {
    label: '消耗情况',
    field: 'consume',
    component: 'Input',
  },
  {
    label: '采购计划',
    field: 'plan',
    component: 'Input',
  },
];
